package inabit.compiler.parser.table.error;

import inabit.compiler.lexical.Token;
/**@author Rafael Rocha*/
public class UnexpectedTokenError implements TableError{

	@Override
	public String errorMessage(Token tk) {
		String appeared = tk.getTokenClass().getStateLabel();
		if(appeared == null) {
			appeared = tk.getTokenClass().toString();
		}
		return "unexpected token " + appeared;
		
	}

}
